package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_felling_trees_energy", autoSave = true,uploadCk = true,desc = "吴刚-体力变化日志")
public class LogFellingTreesEnergy extends ServerBaseLog{

    public static final int TYPE_CUT_ENERGY = 1;
    // 5.1废弃
    public static final int TYPE_RABBIT_ENERGY = 2;

    public static final int SON_TYPE_AUTO_REC = 1;
    public static final int SON_TYPE_ITEM_REC = 2;
    public static final int SON_TYPE_CUT = 3;
    // 5.1废弃
    public static final int SON_TYPE_MAKE_BUFF_ITEM = 4;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "类型，1砍树体力，2玉兔体力(5.1废弃)")
    private int type;
    @FieldTypeAnnotation(desc = "小类型，1正常恢复，2道具恢复，3砍树消耗，4捣药消耗")
    private int sonType;
    @FieldTypeAnnotation(desc = "变化体力")
    private int changeCount;
    @FieldTypeAnnotation(desc = "剩余体力")
    private int energy;


    public LogFellingTreesEnergy(int activityId, long userId, int type, int sonType, int changeCount, int energy) {
        this.activityId = activityId;
        this.userId = userId;
        this.type = type;
        this.sonType = sonType;
        this.changeCount = changeCount;
        this.energy = energy;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSonType() {
        return sonType;
    }

    public void setSonType(int sonType) {
        this.sonType = sonType;
    }

    public int getChangeCount() {
        return changeCount;
    }

    public void setChangeCount(int changeCount) {
        this.changeCount = changeCount;
    }

    public int getEnergy() {
        return energy;
    }

    public void setEnergy(int energy) {
        this.energy = energy;
    }
}
